<?php

require_once("../script/application.php");

if(($_REQUEST['_userName']) && ($_REQUEST['_file']))
{
	$user_name = $_REQUEST['_userName'];
	$file = $_REQUEST['_file'];
	$xml = new XML("../script/user.xml");
	$xml->load_file();
		
	$permissions = Application::get_user_permissions($user_name,$file,$xml);
	echo json_encode($permissions);
}
?>;